package com.iocollege.tinyframe.mapper.system;


import com.iocollege.tinyframe.common.core.MyMapper;
import com.iocollege.tinyframe.entity.system.SysConfig;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2021-01-26
 */
public interface SysConfigMapper extends MyMapper<SysConfig> {

    /**
     * 根据键名查询参数配置信息
     *
     * @param configKey 参数键名
     * @return 参数配置信息
     */
    @Select(" select * from sys_config where config_key = #{configKey} limit 1")
    public SysConfig checkConfigKeyUnique(String configKey);

}
